import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },{
      path:'/page',
      name:'page',
      component: () => import('../views/PageView.vue')
    },{
      path:'/form',
      name:'form',
      component: () => import('../views/FormView.vue')
    },{
      path:'/form1',
      name:'form1',
      component: () => import('../views/FormView1.vue')
    },{
      path:'/rule',
      name:'rule',
      component: () => import('../views/RuleView.vue')
    },{
      path:'/table',
      name:'table',
      component: () => import('../views/TableView.vue')
    },{
      path:'/menu',
      name:'menu',
      component:() =>import('../views/MenuView.vue')
    },{
      path:'/menu1',
      name:'menu1',
      component:()=>import('../views/MenuView1.vue')
    }
  ]
})

export default router
